#ifndef __APP_NETWORK_H__
#define __APP_NETWORK_H__

#include <stdint.h>

#define REQUEST_SENDRFID  (1<<0)
#define REQUEST_HEART     (1<<1)

#pragma pack (2)

typedef struct{
  uint16_t stx;
  uint16_t sum;
  uint16_t length;
  uint16_t cmd;
  uint8_t  devip[4];
  uint8_t  data[1024]; 
}udp_pack;

#pragma pack ()


void rfidSendRequest(int request);
void AppTaskNetWork (void *p_arg);
static void  udpPrease(const void* dat,int length,const uint8_t* ip, uint16_t port);













#endif 

